//include into this document additional ressources
document.writeln('<script type="text/javascript" src="style/common/xfenster.js" ></script>');
document.writeln('<link   type="text/css"        href="style/common/xfenster.css" rel="stylesheet"></link>');

//method used to keep minimum size of the window
function fnResize(xf, w, h){
	if(w<200 || h<40)return false;
	return true;
}

//this methos called on load
function onDisplayResult(){
	//  xFenster(clientId, iniTitle, iniUrl, iniX, iniY, iniW, iniH, enMove, enResize, enMaxRes, enClose, fnMove, fnResize, fnMaxRes, fnClose, fnFocus)
	new xFenster('popup_id', 'information', 'about:blank', Math.max(document.body.clientWidth - 550,100), 100, 350, 200, true, true, false, true, null, fnResize, null, null, null);
	xFenster.instances.popup_id.hide();
}


function showLink($from, $to) {
	xFenster.instances.popup_id.href('apm.php?view=details/graph-links&nomenu=1&xsFrom='+$from+'&xsTo='+$to);
	xFenster.instances.popup_id.show();
}

function showApp($name) {
	xFenster.instances.popup_id.href('apm.php?view=details/graph-app&nomenu=1&xsName='+$name);
	xFenster.instances.popup_id.show();
}
